//
//  LXOrderIntroduceViewCell.m
//  LvXi_newVersion
//
//  Created by 诸葛孔明 on 16/8/15.
//  Copyright © 2016年 SJT. All rights reserved.
//............................................................................................//
//...............................个人中心-订单详情页-快递订单号cell................................//
//............................................................................................//


#import "LXOrderIntroduceViewCell.h"

@interface LXOrderIntroduceViewCell()

@end

@implementation LXOrderIntroduceViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        UILabel *fastMailCmpLabel = [[UILabel alloc] init];
        fastMailCmpLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:fastMailCmpLabel];
        self.fastMailCmpLabel = fastMailCmpLabel;
        
        UILabel *orderNumLabel = [[UILabel alloc] init];
        orderNumLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:orderNumLabel];
        self.orderNumLabel = orderNumLabel;
        
        UILabel *timeLabel = [[UILabel alloc] init];
        timeLabel.font = [UIFont systemFontOfSize:12];
        timeLabel.textColor = [UIColor grayColor];
        [self addSubview:timeLabel];
        self.timeLabel = timeLabel;
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    self.fastMailCmpLabel.width = [self.fastMailCmpLabel.text sizeInAre:MaxSize font:self.fastMailCmpLabel.font].width;
    self.fastMailCmpLabel.height = [self.fastMailCmpLabel.text sizeInAre:MaxSize font:self.fastMailCmpLabel.font].height;
    self.fastMailCmpLabel.x = MineRatio(15);
    self.fastMailCmpLabel.y = MineRatio(15);
    
    self.orderNumLabel.width = [self.orderNumLabel.text sizeInAre:MaxSize font:self.orderNumLabel.font].width;
    self.orderNumLabel.height = [self.orderNumLabel.text sizeInAre:MaxSize font:self.orderNumLabel.font].height;
    self.orderNumLabel.x = self.fastMailCmpLabel.right + 5;
    self.orderNumLabel.y = self.fastMailCmpLabel.y;
    
    self.timeLabel.width = [self.timeLabel.text sizeInAre:MaxSize font:self.timeLabel.font].width;
    self.timeLabel.height = [self.timeLabel.text sizeInAre:MaxSize font:self.timeLabel.font].height;
    self.timeLabel.x = self.fastMailCmpLabel.x;
    self.timeLabel.y = self.fastMailCmpLabel.botton + MineRatio(10);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
